package com.bsj.media.media.packageFlv;


/**
 * @Description TODO
 * @Date 2022/10/25 14:58
 **/
public class FlvTypeHandlerFactory {


    public static FlvTypeHandler flvTypeHandlerFactory(int flvType, CacheParams cacheParams) {
        switch (flvType) {
            case 1:
                return new MediaFlvHandler(cacheParams);
            case 2:
                return new VideoFlvHandler(cacheParams);
            case 3:
                return new AudioFlvHandler(cacheParams);
            default:
                break;
        }
        return new MediaFlvHandler(cacheParams);
    }
}
